<layout name="layout" />
<script type="text/javascript">
    //全局变量
    var GV = {
        DIMAUB: "{:G::$Cache['siteurl']}",
        FILE: "/index.php",
        REAL_FILE: "{:G::$Cache['siteurl']}/admin.php",
        TPL_COMMON: "__COMMON__",
        JS_ROOT: "__COMMON__/js/",
        TOKEN: ""
    };
</script>
<script src="__COMMON__/js/wind.js"></script>
<div class="user_main">
    <ul class="user_main_nav">
        <li class="hover"><a href="{:U('User/Service/fabu')}">新 发 布</a></li>
        <li  <if condition="$_REQUEST['type'] == 'fabu'">class="hover"</if>><if condition="$_REQUEST['type'] == 'fabu'">已 发 布<else/><a href="{:U('User/Service/slist', array('type'=>'fabu'))}">已 发 布</a></if></li>
    </ul>
    <div class="user_main_title">发布生活服务信息</div>
    <div class="user_form_information martop10">
        <form action="__SELF__" name="art_add" method="post" enctype="multipart/form-data">
            <dl class="li"><dt>姓  名：</dt><dd><input name="name" type="text" class="txt t140"></dd></dl>
            <dl class="li"><dt>性  别：</dt><dd><select name="sex" class="t140">
                        <option value="man">男</option>
                        <option value="women">女</option>
                    </select></dd></dl>
            <dl class="li"><dt>年  龄：</dt><dd><input name="age" type="text" class="txt t140"></dd></dl>
            <dl class="li"><dt>籍  贯：</dt><dd><input name="location" type="text" class="txt t140"></dd></dl>
            <dl class="li"><dt>联系电话：</dt><dd><input name="phone" type="text" class="txt t140"></dd></dl>
            <dl class="li"><dt>相  片：</dt><dd><input name="pic_url" type="file" class="txt t260"></dd></dl>
            <dl class="li"><dt>居住地址：</dt><dd><input name="address" type="text" class="txt t435"></dd></dl>
            <dl class="li"><dt>服务类别：</dt>
                <dd>
                    <select name="cat_ids">
                        <volist name="cat" id="ct">
                            <option value="{$ct.cat_id}">{$ct.title}</option>
                        </volist>
                    </select>
                </dd>
            </dl>
            <dl class="li"><dt>收费标准：</dt><dd><input type="text" name="fee" class="txt t435"></dd></dl>
            <dl class="li"><dt>名片模板：</dt><dd></dd></dl>
            <ul class="cardList">
                <volist name="list" id="ls">
                    <li>
                        <img src="{$ls.icon_url}" width="200"/>
                        <span><input name="theme_id" type="radio" value="{$ls.theme_id}"><strong class="CF00"><if condition="$ls['score'] == 0">免费<else/>{$ls.score}</if></strong></span>
                    </li>
                </volist>
            </ul>
            <dl class="li"><dt>自我推荐：</dt><dd></dd></dl>
            <div class="li">

                <textarea id="content" name="info" style="width:95%">{$vo.content}</textarea>
                <script type="text/javascript">
                    //编辑器路径定义
                    var editorURL = GV.DIMAUB;
                </script>
                <script type="text/javascript"  src="__COMMON__/js/ueditor/editor_config.js"></script>
                <script type="text/javascript"  src="__COMMON__/js/ueditor/editor_all_min.js"></script>
                <script type="text/javascript">
                    var editorcontent;
                    function flashupload() {
                        alert(123);
                    }
                    function insertimage() {
                        alert(1);
                    }
                    UE.commands['attachments'] = {
                        execCommand: function(cmd) {
                            return false;
                            flashupload('flashupload', '附件上传', 'content', ueAttachment, '10,,1,,,0', 'Contents', '0', 'af5e6db9882138218435352a0785ded8');
                        },
                        queryCommandState: function() {
                            return this.highlight ? -1 : 0;
                        }
                    };
                    var editor_config_content = {
                        textarea: 'content',
                        toolbars: [
                            ['FullScreen', 'Source', '|', 'Undo', 'Redo', '|',
                                'Bold', 'Italic', 'Underline',
                                'Link', '|', 'InsertImage',
                                'SelectAll', 'ClearDoc', 'SearchReplace', 'Print', 'Preview', 'CheckImage', 'Help', 'AutoTypeSet']
                        ],
                        minFrameHeight: 200
                    };
                    $(function() {
                        editorcontent = new baidu.editor.ui.Editor(editor_config_content);
                        editorcontent.render('content');
                        try {
                            editorcontent.sync();
                        } catch (err) {
                        }
                        ;
                        //增加编辑器验证规则
                    });
                </script>
            </div>
            <div class="clear"></div>
            <div class="li but martop10">
                <input type="submit" class="s" value=" ">&nbsp;&nbsp;&nbsp;&nbsp;
<!--                <input type="reset" class="r" value=" ">-->
            </div>
        </form>
    </div>
</div>
<!---->
</div>